import {XHRBackend, Http, RequestOptions} from "@angular/http";

import {InterceptedHttp} from "./http.interceptor";

import { Router } from '@angular/router';

import {ToastyService, ToastyConfig, ToastOptions, ToastData} from '../modules/ng2-toasty';

export function httpFactory(xhrBackend: XHRBackend, requestOptions: RequestOptions,routes:Router,toastyService:ToastyService): Http {

    return new InterceptedHttp(xhrBackend, requestOptions,routes,toastyService);
}
